package com.mndp.system.mapper;

import com.mndp.system.domain.po.TestPeople;
import com.mndp.system.domain.vo.TestPeoplePageVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TestPeopleMapper extends BaseMapper<TestPeople> {

    /**
     * 测试数据-MP分页
     */
    IPage<TestPeople> getPageWrapper(Page<TestPeople> page, @Param("ew") Wrapper<TestPeople> wrapper);

    /**
     * 测试数据-自写分页
     */
    IPage<TestPeople> getPage(Page<TestPeople> page, @Param("vo") TestPeoplePageVo vo);
}
